home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1994 October / Macformat17.cdr / Shareware City / Applications / Alpha.5.81 folder / Help / Alpha Commands < prev    next >
Text File  |  1994-06-13  |  31KB  |  597 lines

  1. ==============================================================================
  2. = Alpha Commands 
  3. ==============================================================================
  4.  
  5. In this list of routines, text between '<' and '>' is a placeholder for a 
  6. required parameter, text between '[' and ']' is a placeholder for an 
  7. optional parameter, and the '|' signifies a choice of two or more 
  8. alternatives.  A '+' signifies that the previous symbol can be present one 
  9. or more times, while a '*" means zero or more times.  Some commands have no 
  10. parameters, and are only expected to be called interactively.
  11.  
  12.  
  13.  
  14. The following are Alpha-specific tcl routines:
  15.  
  16. • abortEm - aborts whatever is currently happening
  17. • addMenuItem [-m] [-l <meta-characters>] <menu name> <item name> - Convert
  18.   item to menu form and add to specified menu. If '-m' specified, menu 
  19.   form conversion not done. The '-l' option allows you to use menu meta 
  20.   characters as text of menu items. If the '-l' option is used, the 
  21.   <meta-characters> string is interpreted for menu item attributes, and 
  22.   meta-characters in <item name> are included in the menu item text 
  23.   literally. For example: 
  24.       addMenuItem -m -l "/B" "Hello/C" 
  25.   would appear as the text "Hello/C" in the menu, and have "B" as its 
  26.   command equivalent.
  27. • AEBuild [<flags>] <app (name|creator)> <aesuite> <aeevent> [<event parameters>]*  -
  28.   Build and send an apple-event. 'AEBuild' is apple's code of the same 
  29.   name. Each "event parameter" is two parameters, a parameter type and 
  30.   the data for the parameter. See the AEBuild doc for more details, 
  31.   :Tcl:SystemCode:think.tcl for examples. The flags are '-r' (no reply), 
  32.   '-q' (queue reply, in which case 'handleReply' (in appleEvents.tcl) is 
  33.   called with the reply as a parameter, and '-t <timeout>' specifies the 
  34.   timeout in ticks.
  35. • alertnote message_string
  36.   This command will display message_string in a standard Macintosh alert box.
  37. • alphaHelp - display Alpha help.
  38. • ascii (see bindings).
  39. • askyesno prompt
  40.   This command will display a Macintosh alert box with 'prompt' displayed
  41.   with the push buttons Yes and No. The command will return the 
  42.   string "yes" or "no".
  43. • backColor - set background color
  44. • backwardCharSelect - extends selection one char back
  45. • backwardChar - moves insertion one char back
  46. • backwardDeleteWord - deletes previous word
  47. • backwardWord - moves insertion one char back
  48. • balance - selects smallest set of parens, braces, or 
  49.   brackets that encloses the current selection
  50. • beep
  51. • beginningBufferSelect - extend selection to the 
  52.   beginning of the buffer
  53. • beginningLineSelect - extend selection to the 
  54.   beginning of the line
  55. • beginningOfBuffer - move insertion to the beginning 
  56.   of the buffer
  57. • beginningOfLine - move insertion to the beginning of 
  58.   the line
  59. • bind  (see bindings)
  60. • blink <pos> - blink cursor at 'pos'
  61. • breakIntoLines <string> - return 'string' with 
  62.   carriage returns and spaces inserted to satisfy 
  63.   'leftFillColumn' and 'fillColumn' variables.
  64. • bringToFront <winName> - Bring named window to front.
  65. • capitalizeRegion - capitalize all words in selected 
  66.   region 
  67. • capitalizeWord - capitalize word
  68. • cd [directory]
  69.   This command will set the current working directory to "directory". The directory 
  70.   argument may or may not end with a colon. The working directory is the directory 
  71.   in which file names that contain no colons (folders) will be located with file related 
  72.   commands. No argument means Alpha's home directory.
  73. • centerRedraw - redraw window with current line in 
  74.   the middle.
  75. • clear - clear selected text
  76. • closeAll - close all windows
  77. • colorize <fromPos> <toPos> <black blue cyan green green magenta red white yellow> -
  78.   Change the color of the specified region. 
  79. • colors <fore red> <fore green> <fore blue> <back red> <back green> <back blue>
  80. • copy - copy region
  81. • cp <fromName>+ <toName>
  82.   This command will copy the file fromName and name the new file toName, 
  83.   overwriting any existing file. This command copies both data forks, and 
  84.   the Finder information. 
  85. • createTagFile - searches all files in current file set 
  86.   and saves the locations of any function declarations
  87.   in a file called 'cTAGS'.
  88. • createTMark <name> <pos> - create a temporary 'mark' 
  89.   at location 'pos'. 
  90. • currentPosition - displays current and total bytes.
  91. • cut - deletes and saves region
  92. • deleteChar - delete char AFTER cursor
  93. • deleteMenuItem [-m] <menu name> <item name> - Convert item to menu form 
  94.   and delete from specified menu. If '-m' specified, menu form conversion 
  95.   not done. 
  96. • deleteSelection - delete current position, don't save
  97. • deleteWord - delete word after cursor
  98. • describeBinding - display the binding of the next typed key sequence. 
  99. • deleteText <pos1> <pos2> - remove text between 'pos1' 
  100.   and 'pos2'
  101. • displayMode <mode> - Up to four characters of the 'mode' string are 
  102.   displayed in the status line at the bottom of a window.
  103. • dosc [<-c 'sign' | -n appName>] [-k 'clas'] [-e 'evnt'] <-s string | -f fileName> [<-t timeout|-r>]
  104.   Send an AppleEvent, by default class 'misc', event 'dosc'.
  105.    -c 'sign' 
  106.            "sign" is a four-letter creator signature of a running application.
  107.    -n appName
  108.            "appName" is the name of a running application.
  109.    -k 'clas'
  110.            "clas" is a four-letter event class.
  111.    -e 'evnt'
  112.            "evnt" is a four-letter event class.
  113.    -s string
  114.            "string" is the text of a script to send to the other app.
  115.    -f fileName
  116.            "fileName" is the complete or relative pathname of a file the other 
  117.            application should execute.
  118.    -t timeout
  119.            "timeout" is the number of ticks Alpha should wait for a response. A 
  120.            timeout of "0" means wait forever.
  121.    -r
  122.            Do not wait for reply.
  123.    If neither of the '-c' and '-n' options is chosen, the PPC Browser is 
  124.    used. Either '-s' or '-f' must be chosen. Thus, you can have "Alpha 
  125.    5.02" and "Alpha 5.02 Copy" sending Apple events to each other, or they 
  126.    can send events to a remote server such as Apple's ToolServer. 
  127.    "$HOME:Tcl:UserCode:createStuffitArchive.tcl" contains examples of 
  128.    controlling Stuffit Deluxe via this command.
  129. • downcaseRegion - changes all uppercase letters to 
  130.   lowercase in current region
  131. • downcaseWord - changes all uppercase letters to 
  132.   lowercase in current word
  133. • dumpColors - dump current foreground and background
  134.   colors into the current buffer in Alpha-readable
  135.   format.
  136. • dumpMacro - prompts for a name and then dumps a tcl proc representation 
  137.   of the current keyboard macro into the current window.
  138. • echo <string>* - echo the strings (used 
  139.   in shells).
  140. • edit <name> [-r] [-m] - Open a file in a new window. '-r' means open 
  141.   the file read-only. '-m' means omit the function titlebar menu and  
  142.   present only the marks titlebar menu, which is labeled with the 
  143.   contents of 'markLabel'.
  144. • endBufferSelect - extend selection to the end of the 
  145.   buffer
  146. • endKeyboardMacro - stop recording keyboard macro
  147. • endLineSelect - extend selection to the end of line
  148. • endOfBuffer - move insertion to the end of the buffer
  149. • endOfLine - move insertion to the end of the line
  150. • enterSelection - use current selection for future searches.
  151. • exchangePointAndmark - exchange the current 'mark' 
  152.   w/ the current insertion point
  153. • execute - prompt user for a function or macro. The 
  154.   tab key acts as a "completion" command.
  155. • executeKeyboardMacro - execute the current keyboard 
  156.   macro
  157. • fileInfo - prompts for a file, and displays type, 
  158.   creator, sizes of both data and resource forks, last
  159.   modification time, and creation time
  160. • fileRemove - prompts for a file, and removes it
  161. • findInNextFile - search next file.
  162. • findTag - prompt user for a function name and attempt 
  163.   to use the file 'cTAGS' to locate the function's 
  164.   definition
  165. • find - bring up the find dialog
  166. • findFile - open a file in a new window
  167. • foreColor - set foreground (text) color
  168. • forwardCharSelect - extend selection one character 
  169.   forward
  170. • forwardChar - move insertion one character forward
  171. • forwardWord - move insertion one word forward
  172. • freeMem - give a rough approximation of the current 
  173.   memory reserves of ALPHA
  174. • get_directory
  175.   This command will display a standard Macintosh file dialog and request the user 
  176.   select a folder. The command will return the selected folder's full path name, or an 
  177.   empty string if the Cancel button was selected.
  178. • getAscii - displays the ASCII code for character at 
  179.   current insertion point
  180. • getfile <prompt>
  181.   This command will display an SFGetFile() and return the full path name of the 
  182.   selected file, or an empty string if CANCEL button was selected.
  183. • getfinfo <fileName>
  184.   This command will display the standard Macintosh file information in the form:
  185.   "'aeQL' 'QUIL' lvbsIdm 02/17/92 23:57:12 02/19/92 22:43:36 0,156 219 0".
  186.   The fields are the fdCreator, fdType, fdFlags, flCreationDate, flCreationtime, 
  187.   flModDate, flModTime, fdLocation.H,V, dataForlLength, rsrcForkLength, 
  188.   respectively. The fdFlags field uses characters to represent bits:
  189.     l/L    not locked/Locked
  190.     v/V    visible/notVisible
  191.     b/B    not bundled/Bundled
  192.     s/S    not system/System
  193.     i/I    not initialized/Initialized
  194.     d/D    not desktop/Desktop
  195.     m/M    not sharable/sharable
  196. • getGeometry - return a TCL list containing the left 
  197.   edge of the current window, the top, the width, and
  198.   height.
  199. • getline <prompt> <default>
  200.   This command will display a Macintosh alert box with prompt displayed, a 
  201.   text edit field with default initially in the field, and with the push 
  202.   buttons OK, Cancel.. The command will return the text entered into the 
  203.   text edit field by the user, or an empty string if the user selected the 
  204.   Cancel button. 
  205. • getMainDevice - return a list containing the left, top, right, and 
  206.   bottom of the rectangle defining the main device.
  207. • getMark - return the current mark.
  208. • getNamedMarks - return list of all permanent marks in open files. Each
  209.   element of a list describes one mark as a sublist of the mark's name, 
  210.   the complete pathname of the mark's file, the position of the first 
  211.   character in the first line displayed, the current position, and the 
  212.   end of the selection if text is hilited, or the current position again 
  213.   if there is no hilited section.
  214. • getPathName - prompt the user with an SFGetFile dialog and return 
  215.   complete pathname.
  216. • getPos - return the current insertion point
  217. • getScrap - returns system TEXT scrap.
  218. • getSelect - return the currently selected text, if 
  219.   any.
  220. • getTMarks - Return a list of temporary marks. Each item of the returned 
  221.   list is a sublist containing the mark name, the complete pathname of the 
  222.   mark, and the start and finish of the selection named by the mark. The 
  223.   following is an example of the result: 
  224.  
  225.     {{temp1 External:file.c 1312 1315} {temp2 Internal:it.h 111 111}} 
  226.  
  227. • getText <pos1> <pos2> - return the text between 'pos1' 
  228.   and 'pos2'.
  229. • glob [-i] [-t <TYPE>] [-c <CRTR>]
  230.   The original glob provided by the UNIX version of tcl was not quite 
  231.   adequate for the more complex Macintosh file system. Issues such as 
  232.   invisible file handling, Finder type and creator filtering, and space 
  233.   handling in file names. Release 6 of tcl has dealt with the original 
  234.   problem with spaces in filenames, but the following options are provided 
  235.   to deal with additional Macintosh issues. 
  236.  
  237. Anyway, the new glob now takes several options. They are:
  238.     -i    This option causes glob to list invisible files also.
  239.     -t TYPE    This option causes glob to only list file with the 
  240.         indicated Finder file typeTYPE. This option may be 
  241.         used with the -c option.
  242.     -c CRTR    This option causes glob to only list file with the 
  243.         indicated Finder file creatorCRTR. This option may 
  244.         be used with the -t option.
  245.         Also note that the original glob would skip dot files
  246.         (i.e., file names the begin with a period) 
  247.         in the listing, unless the pattern began with a period.
  248.         Tickle extends this concept one step further on the
  249.         Macintosh, and skips spot files (i.e., file names that 
  250.         begin with '•'), unless the pattern starts with a spot.
  251. • goto <pos> - goto the position 'pos'.
  252. • gotoLine - go to a line number
  253. • gotoMark - goto named mark, use 'mark' in macros.
  254. • gotoTMark <name> - goto the temporary mark 'name'.
  255. • enableMenuItem <menuName> <item text> <on|off> - Either enable or 
  256.   disable the menu item of user menu 'menuName' that has text '<item 
  257.   text>'. Note that unless the menu is not only created, but also already
  258.   inserted, this command has no effect. 
  259. • icon [-f <winName>] [-c|-o|-t|-q] [-g <h> <v>] - Having to do w/ 
  260.   iconifying windows. '-c' means close (iconify) window, '-o' open, '-t' 
  261.   toggle open/close, '-q' returns either a '1' for an iconified window or a 
  262.   '0' for an uniconified window, and '-g' moves the icon to horizontal 
  263.   position <h> and vertical position 'v'. Options are executed as they 
  264.   are parsed, so the '-f' option, if present, should always be first. 
  265. • includeFile - expand the current selection to include 
  266.   the suffix and use the var 'includePath' to try to 
  267.   find the include file. 
  268. • indentLine - semi-intelligent indent. If cursor is
  269.   before first non-white space of line, the line is
  270.   indented and the selection is placed at the start
  271.   of the non-white space text
  272. • insertAscii - prompts for an ASCII code and inserts
  273.   into text.
  274. • insertFile - prompts for a file name and inserts the
  275.   corresponding file into the current window. Not
  276.   undoable.
  277. • insertMenu <name> - insert the previously created user menu 'name' into 
  278.   the menuBar. 
  279. • insertPathName - present the user w/ a SFGetFIle dialog 
  280.   and paste the complete path-name of the chosen file
  281.   into the current window
  282. • insertText [-w <win name>] <text>* - Insert 'text' at the current 
  283.   insertion point.
  284. • insertToTop - make the line that the insertion point 
  285.   is on the first line shown, and display the current 
  286.   line number along w/ the total number of lines in file
  287. • isearch - incremental search: searches w/o a dialog,
  288.   searches as you type the search pattern. Does not do
  289.   regular expression searches. 'matchWords' 
  290.   automatically set to false.
  291. • iterationCount - allows actions to be repeated many times. "option-u 44 
  292.   =" inserts 44 '='s into current window.  Also can be used to execute any 
  293.   function or macro (including the keyboard macro) many times.  Defaults to 
  294.   4.
  295. • keyAscii - insert ascii representation (in decimal)
  296.   of the keydown event, plus a modifier string, if 
  297.   necessary.
  298. • keyCode - insert the key code along w/ a string 
  299.   representing and modifiers into the current window.
  300.   Can be used to create bindings in 'Alphabits'.
  301. • killLine - kill text from insertion point to the end 
  302.   of the line. If the line has no text, delete the line 
  303.   and move succeeding lines up one.
  304. • killWindow - kill current window
  305. • launch -f <name> - launch the named app into the background. Note that 
  306.   for some yet unexplained reason, some applications (MicroSoft Word) 
  307.   won't launch completely in the background. 'launch'ing such 
  308.   applications won't insert the application into any system menu that 
  309.   specifies running applications (although "About the Finder..." will 
  310.   list it. The only way to get to such an app is through Alpha's 
  311.   'switchTo', after which the application will finish launching. The '-f' 
  312.   option gets around this by launching the application in the foreground 
  313.   instead.
  314. • lineStart <pos> - return the position of the start of
  315.   the line 'pos' is on.
  316. • listBindings - list all current bindings.
  317. • listpick [-p <prompt>] [-l] <list>
  318.   This command will display a dialog with the list displayed in a List Manager list. If 
  319.   the user presses the Cancel button, an empty string is returned. If the user selects 
  320.   the Open button, or double clicks an item in the list, that item will 
  321.   be returned. If '-l' is specified, than the return is a list of items.
  322. • load - loads hilited text, or entire window if 
  323.   nothing is hilited. 'load'ing means that whatever 
  324.   bindings or macro definitions are present in the 
  325.   loaded text take effect
  326. • lookAt [-w <name>] <pos> - return the 'pos'th character of the 
  327.   current file, or the file named by <name> if the '-w' option is specified.
  328. • makeMenuPermanent <name> - The named menu is no longer deleted from the 
  329.   menubar in response to subsequent 'removeMenu' calls.
  330. • markHilite - This is the 'Hilite' from the 'Edit'
  331.   menu. If there is a currently hilited selection, the 
  332.   selection is unhilited, leaving the mark and the 
  333.   insertion point around the old selection. If there 
  334.   is not a selection, the region between the insertion 
  335.   point and the mark is selected.
  336. • markMenuItem [-m] <menuName> <item text> <on|off> [<mark char>] - Either mark or unmark
  337.   the menu item of user menu 'menuName' that has text '<item text>'. 
  338.   Note that unless the menu is not only created, but also already
  339.   inserted, this command has no effect. 
  340. • matchBrace - moves the insertion point to the 
  341.   character that matches the character after the current 
  342.   insertion point
  343. • matchIt <brace char> <pos> - Return pos of matching brace. Recognizes 
  344.   parenthesis, square brackets, and curly braces.
  345. • maxPos - returns the number of characters in the front
  346.   window.
  347. • menu [-n <name>] [-i <num] [-m] [-p <procname>] <list of menu items> - Defines a 
  348.   new menu named 'name' (if provided w/ '-n' option). The menu is not yet 
  349.   inserted into the menubar. The menu commands may be nested for 
  350.   heirarchical menus, see 'AlphaBits.tcl' for examples. Alpha massages the 
  351.   function names to make them look better in the menus. 
  352.   '-n <num>'    Resource id of icon suite to use for menu title. 'ics#' 
  353.                 is the only resource that is really necessary.
  354.   '-n <name>'    Name the menu. Not necessary for submenus.
  355.   '-m'            No menu form. If not supplied, each menu item is split into 
  356.                   words at each capitalized letter.
  357.   '-p <name>'     The tcl proc named by 'name' is called w/ the menu item's 
  358.                   contents as it's single argument when the item is chosen. If the 
  359.                   proc returns "normal" as its result, the menu item is executed as 
  360.                   if no proc had been specified.
  361. • message <string> - prints 'string' on the status line.
  362. • mkdir <name> - creates a directory (folder) named 
  363.   'name' in the current directory.
  364. • mousePos - Returns list <row,col> of mouse position, if the mouse is 
  365.   currently over the active window. Otherwise, return error (catch w/ 
  366.   'catch').
  367. • moveInsertionHere [-last] - move the insertion point to the 
  368.   first (or last) line displayed
  369. • moveWin [win name] <left> <top> - moves current or specified window. 
  370.   The window name can be "StatusWin".
  371. • mtime <time> [long|short|abbrev]
  372.   Returns a date and time string using the Macintosh International Utilities. The 
  373.   long/short/abbrev specification corresponds to the date. These are the following 
  374.   formats:
  375.     short        3/16/92 9:20:46 PM
  376.     abbrev    Mon, Mar 16, 1992 9:20:49 PM
  377.     long        Monday, March 16, 1992 9:20:43 PM
  378.   The returned value actually is in the form of a list. To get text as 
  379.   above, run the result through 'join', as in "join [mtime [now] short]".
  380. • moveFile <fromName> <toName>
  381.   This command will move the file fromName to toName, overwriting any 
  382.   existing file. The move can not be made across volume (disk drives) 
  383.   boundaries. 
  384. • new - opens an untitled window
  385. • nextLine - move insertion point to next line
  386. • nextLineSelect - extend selection to the next line
  387. • nextLineStart <pos> - return the position of the start 
  388.   of the next line after position 'pos'.
  389. • nextSentence - go to next sentence ("fill.tcl").
  390. • nextWindow - select next window
  391. • now
  392.   Returns the current time as Macintosh seconds. This is the number of seconds that 
  393.   have elapsed since Midnight Jan 1, 1904.
  394. • oneSpace - converts whitespace surrounding insertion
  395.   into a single space.
  396. • openLine - insert a new line following the current 
  397.   one and move the insertion point to it
  398. • pageBack - display prev screenful, move the
  399.   insertion point if 'moveInsertion' enabled
  400. • pageForward - display next screenful, move the
  401.   insertion point if 'moveInsertion' enabled
  402. • pageSetup - display the printing PageSetup dialog.
  403. • paste - insert the last chunk of text created by 'cut' 
  404.   or 'copy'
  405. • posToRowCol <pos> - converts from absolute position to row, col.
  406. • prefixChar - used to further modify the next keystroke 
  407.   combination, in the same manner as using the shift key 
  408.   in the next keystroke
  409. • prevLineSelect - extend selection to the previous line
  410. • prevSentence - go to previous sentence ("fill.tcl").
  411. • prevWindow - select previous window
  412. • previousLine - move insertion point to the previous 
  413.   line
  414. • print - print front window
  415. • processes - returns info of active processes. A list of lists, each 
  416.   sublist contain a file-name, an application signature, the application 
  417.   memory size, and the number of ticks the application has been active.
  418. • prompt <prompt> <default> [<name> <menu item>*] - prompt dialog to 
  419.   the user with a prompt string and a default value. The prompt dialog can 
  420.   optionally include a popup menu specified by 'name' and the succeeding 
  421.   strings. Selection of the popup menu items inserts the item text into the 
  422.   editable dialog item. 'Prompt' returns the value of the editable item. 
  423.   If the 'Cancel' button is selected, the tcl returns an error and your 
  424.   script will be stopped unless you execute the command from 'catch'.
  425. • putfile <prompt> <original>
  426.   This command will display an SFPutFile() and return the full path name of the 
  427.   selected file, or an empty string if CANCEL button was selected. Original is the 
  428.   default name displayed for the user.
  429. • putScrap [<string>]+ - Concatenate strings together into the system 
  430.   scrap. The scrap can be appended to through calls of the form 'putScrap 
  431.   [getScrap] " another word"'.
  432. • pwd
  433.   This command will return the current working directory.
  434. • quit - quits ALPHA
  435. • rectMarkHilite - creates a rectangular selection 
  436.   between the mark and the insertion point.
  437. • redo - redo the next action that has been undone but 
  438.   not redone
  439. • regModeKeywords <mode> <keyword list> - Set keywords and comments that 
  440.   Alpha can recognize to color them. Specifically, in mode <mode>, every 
  441.   keyword specified in the list is colored non-black (blue, by default). 
  442.   Comments, if specified by '-e' or '-b' below, are colored red by defualt.
  443.     -m <c>                            Specify a magic character. Every word beginning with the 
  444.                                     magic character is a keyword.
  445.     -e <commentstr>                    Specify a string that begins comments that last to 
  446.                                     the end of the line. 
  447.     -b <comment beg> <comment end>    Specify a pair of strings that bracket a 
  448.                                     comment.
  449.     -c <color>                        Comment color.
  450.     -k <color>                        Keyword color.
  451. • removeMark [-all]|[[-n <mark name] [-w <specname>]]- allows marks to be 
  452.   removed. If no options are specified, it's interactive.
  453. • removeMenu <name> - remove menu 'name' from menubar, except those 
  454.   specified by previous 'makeMenuPermanent' calls.
  455. • removeTMark <name> - remove temporary mark.
  456. • repeatSearchBackward - repeat search backward
  457. • repeatSearchForward - repeat search forward
  458. • replaceText <pos1> <pos2> [text]+ - replaces the text
  459.   between 'pos1' and 'pos2' with 'text', where 'text' can be any number 
  460.   of arguments. Leaves insertion at end, mark at beginning of inserted 
  461.   text. 
  462. • removeColors [-f <win name>] - remove all colors from window.
  463. • removeFile <fileName>
  464.   This command will delete the file or folder 'fileName'.
  465. • restoreVars - restore variables to saved state, 
  466.   see 'saveVars'
  467. • revert - revert the file to it's last saved version
  468. • rowColToPos <row> <col> - converts to abosolute position.
  469. • rsearch - reverse incremental search, see 'isearch'.
  470. • save - save current window
  471. • saveAs - save current window with new name
  472. • saveVars - save variable state, see 'restoreVars'
  473. • scrollDownLine - same action as that which occurs when 
  474.   the down arrow in the vertical scrollbar is selected
  475. • scrollLeftCol - same action as that which occurs when
  476.   the left arrow in the horizontal scrollbar is selected
  477. • scrollRightCol - same action as that which occurs when
  478.   the right arrow in the horizontal scrollbar is 
  479.   selected
  480. • scrollUpLine - same action as that which occurs when 
  481.   the up arrow in the vertical scrollbar is selected
  482. • search [-f <num>] [-r <num] [-i <num>] [-m <num] [-n] [-l <limit>] [--] <pattern> <pos> - 
  483.   Searches for 'pattern' from position 'pos'.  The '-f', '-r', '-i', and 
  484.   '-m' options allow the 'forward', 'regExpr', 'ignoreCase', and 
  485.   'matchWord' internal variables to be set.  The '-l' option allows a 
  486.   search limit to be set.  The search fails if the a match is not found 
  487.   totally contained between 'pos' and 'limit'.  A '--' option specifies 
  488.   that the flags are finished and that the next arg is the pattern.  The 
  489.   '-n' option specifies that a failed search still returns TCL_OK.  
  490.   However, the result of the call is then just an empty string.  If the 
  491.   search succeeds, a list of two positions will be returned.  The first is 
  492.   the starting position of the match, the second is one past the last 
  493.   character.
  494.  
  495. • replaceAll - replace all further occurrences in the current file.
  496. • replace - replace the current selection
  497. • replace&FindAgain - replace the current selection and find next 
  498.   occurrence.
  499. • select <pos1> <pos2> - selects the text between 'pos1' 
  500.   and 'pos2'.
  501. • selEnd - returns the end of the hilited selection, or 
  502.   the current insertion point if no text is selected.
  503. • sendOpenEvent <-n app name> <file name> - Send an open doc event to 
  504.   another currently running application.
  505. • sendToBack <winName> - Sent named window to back.
  506. • setfinfo <fileName> [-a flags] [-c fdCreator] [-t fdTypes]
  507.   This command will set the standard Macintosh file information. The flags setting 
  508.   must be of the same format as displayed by the getfinfo flag.
  509. • setMark - set the current mark to the insertion point
  510. • setFontsTabs - bring up font and tab dialog
  511. • setNamedMark [name disp pos end] - set named mark. If optional arguments are 
  512.   present, the mark is created with prompting user. 'disp' is the 
  513.   character position of the start of the first line to be displayed, 
  514.   while 'pos' and 'end' bracket the text to be selected.
  515.   the first char 
  516. • shadowVar <name> - Associates a Tcl variable with an Alpha variable of 
  517.   the same name. Writes to the Tcl variable automatically are copied to 
  518.   the Alpha variable.
  519. • shell - open the Tcl shell.
  520. • shiftLeftRegion - shifts the current region left a tab
  521. • shiftRightRegion - shift the current region right a 
  522.   tab
  523. • sizeWin [win name] <width> <height> - sets size of current or specified window.
  524.   The window name can be "StatusWin", although only the width can be 
  525.   changed.
  526. • sortMarks - sorts all marks of open windows, w/o 
  527.   setting the dirty flag. If the files are saved, the 
  528.   marks will be saved in alphabetical order.
  529. • spacesToTabs - convert spaces in selection to tabs
  530. • specToPathName [hex data] - given an FSSpec in hex form (as that 
  531.   returned by aebuild, for instance, see the definition of thinkFileName 
  532.   in :Tcl:SystemCode:think.tcl), return a complete pathname.
  533. • startEscape - used to further modify the next 
  534.   keystroke combination, in the same manner as using the 
  535.   shift key in the next keystroke
  536. • startKeyboardMacro - start recording keyboard macro
  537. • statusPrompt <prompt> [<func>] - Prompt in the status window. If 'func' 
  538.   is present, call this routine at each key-press with the key, and the 
  539.   current contents of the status line, insert into statusline whatever is 
  540.   returned by the func.
  541. • substituteVars <string> - Takes a single string and
  542.   substitutes for all variables inside it, regardless of
  543.   depth. Unfortunately, you currently need to make 'global var' 
  544.   declarations in the proc you call this for each 'var' that might need 
  545.   to be substituted in the string (see proc.tcl for examples).
  546. • switchTo <appName> - Switches to application 'appName'.
  547. • tab - insert a tab
  548. • tabsToSpaces - convert tabs in selection to spaces.
  549. • tclFileCompletion - completes the previous word as a
  550.   file is in a shell window
  551. • tclResult - displays a dialog showing the result of 
  552.   the last TCL evaluation.
  553. • thinkReference <-t|-l> <think reference page> - Interact with Think 
  554.   Reference 2.0. '-t' retrieves a template without leaving Alpha, '-l' 
  555.   switches to Think Reference and goes to the specified page.
  556. • ticks
  557.   Returns the current TickCount. Ticks are 60ths of a seconds. TickCount is the 
  558.   number of ticks since the Macintosh was started. The command:
  559.         puts stdout [expr "[ticks] / 60"]
  560.   will print the number of seconds since the Macintosh was booted.
  561. • toggleScrollbar - toggles horizontal scrollbar on frontmost window. 
  562.   Will not succeed if scrollbar scrolled.
  563. • traceFunc on <funcName> <winName> Trace 'funcName', send output to 
  564.                                     'winName'. 
  565.   traceFunc off                        Turn function tracing off.
  566.   traceFunc status                    Display current tracing status.
  567. • unbind  (see bindings)
  568. • undo - undo the last action that has not been undone
  569. • upcaseRegion - convert all lowercase letters to 
  570.   uppercase in the current region
  571. • upcaseWord - convert all lowercase letters to 
  572.   uppercase in the current word
  573. • version - Return string of the form "Alpha Version 5.31, Feb. 15, 1993".
  574. • watchCursor - turns the cursor into a a watch cursor.
  575. • wc <file>... - counts chars, words, lines of input files.
  576. • winFuncTitle <winName> <title> - Sets the title of the leftmost 
  577.   titlebar menu. See the section on "TitleBar Menus" in "General Help".
  578. • winNames [-f] - return a TCL list of all open windows. If '-f' option 
  579.   specified, complete pathnames are returned.
  580. • wrap - see the section on "Fill" routines.
  581. • wrapText
  582. • xtclcmd [-f filename] <cmdname> [argument_list]*
  583.   This command will load the external command cmdname and pass it the argument 
  584.   list [ cmdname argument_list... ]. External command are code resources of type 
  585.   XTCL. They may be located in the resource fork of the tickle application, or they 
  586.   may be located in a file named XTCL File in the same directory as the tickle 
  587.   application. If the optional -f filename is included, the external command will first 
  588.   be loaded from filename before the other two files.
  589.   See the appendix for a detailed description of the external tcl command interface. 
  590.   See the accompanying sources for an example of writing an XTCL.
  591. • yank - insert the last piece of deleted text of less
  592.   than 1k. Consecutive deletes are concatenated.
  593.   together.
  594. • zapInvisibles - removes chars < ascii 32, except for
  595.   LF's and CR's.
  596. • zoom - zooms the current window
  597.